Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Query Parameters
If you add a query param AudienceRulesOnly=true, the request will be validated against customer-related rules only, the rest of attached limits and rules will be ignored.
Filter conditions.
Body
Provide the customer and order context.
Request schema model for validating a promotion using POST v1/promotions/validation
.
Customer's information. You can pass the unique customer ID that was assigned by Voucherify.
- Customer ID
- Customer Source ID
- Customer
Order information. You can pass the unique order ID that was assigned by Voucherify.
- Order ID
- Order Source ID
- Order Customer And Referrer Ids Objects
A set of key/value pairs that you can send in the request body to check against vouchers requiring redemption metadata validation rules to be satisfied. The validation runs against rules that are defined through the <!-- [Create Validation Rules](https://docs.voucherify.io/reference/create-validation-rules) -->Create Validation Rules endpoint or via the Dashboard; in the Advanced Rule Builder → Advanced → Redemption metadata satisfy or Basic Builder → Attributes match → REDEMPTION METADATA. Read more.
Configure parameters returned in the response.
Response
Returns a list of valid promotions for a given context (customer and order). You can then choose which promotion to apply, i.e. the highest discount amount.
Response schema model for validating a promotion using POST v1/promotions/validation
.
Indicates whether the promotion is valid within the context of the parameters provided in the request body and filters in the query parameters.
Hashed customer source ID.
Contains an array of promotion tier objects.